home *** CD-ROM | disk | FTP | other *** search
- /* ====================
- * V3DHandlerOpenDoc.cc
- * ====================
- */
-
- #include <stdio.h>
-
- #include "PedestalDebugging.h"
- #include "SiesString.hh"
- #include "PedFSRef.hh"
- #include "V3DAgentDoc.hh"
- #include "V3DHandlerOpenDoc.hh"
- #include "V3DDocModel.hh"
-
-
- V3DHandlerOpenDoc::V3DHandlerOpenDoc(PedApplication &inApp)
- : PedHandlerOpenDoc(inApp)
- {
- }
-
- V3DHandlerOpenDoc::~V3DHandlerOpenDoc()
- {
- }
-
- void
- V3DHandlerOpenDoc::DoOpenDoc(FSSpec &inFSS)
- {
- PedFSRef *ref = new PedFSRef(inFSS);
- ref->autorelease();
- V3DDocModel *doc = new V3DDocModel;
- V3DAgentDoc *agent = new V3DAgentDoc((PedTask *)&mApp, doc);
- doc->release();
- agent->autorelease();
- doc->SetFile(*ref);
- agent->OpenWindow();
- }
-